package xbase

func NewBool(val bool) *bool {
	var p = new(bool)
	*p = val
	return p
}

func NewInt(val int) *int {
	var p = new(int)
	*p = val
	return p
}

func NewString(val string) *string {
	var p = new(string)
	*p = val
	return p
}

func AbsInt(val int) int {
	if val < 0 {
		return -val
	}
	return val
}